//
//  Clase para control de formas de contacto
//
//  Created by  on 2009-04-18.
//  Copyright (c) 2009 Blue Adventures. All rights reserved.
//

class me.Blueadventures.form.FormControl {
	private var _form:Form;
	private var _dataSender:DataSender;
	
	function FormControl( forma:Form )
	{
		this._form= forma;
	}
	
	public function sendForm( sender:DataSender )
	{
		this._dataSender=sender;
		if( this._form.validate() ){
			this._dataSender.setData( this._form.getData() );
			this._dataSender.send();
		}
	} 
	
}